﻿using UnityEngine;
using System.Collections;

public class ShootScript : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}

    public float speed;
	// Update is called once per frame
	void Update () 
    {
        transform.Translate(Vector2.up * speed);
	}

    void OnTriggerEnter2D(Collider2D collider)
    {
        if (collider.tag == "boundary")
            Destroy(gameObject);
        if (collider.tag == "enemy")
            Destroy(gameObject);
    }
}
